package com.zeta.system.model.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.time.LocalDate;

/**
 * 修改用户基本信息参数
 *
 * @author gcc
 */
@Data
@Schema(description = "修改用户基本信息参数")
public class ChangeUserBaseInfoDTO {

    /** 用户名 */
    @Schema(description = "用户名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "用户名不能为空")
    @Size(max = 32, message = "用户名长度不能超过32")
    private String username;

    /** 邮箱 */
    @Schema(description = "邮箱", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String email;

    /** 手机号 */
    @Schema(description = "手机号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String mobile;

    /** 性别 0未知 1男 2女 */
    @Schema(description = "性别 0未知 1男 2女", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "性别不能为空")
    private Integer sex;

    /** 生日 */
    @Schema(description = "生日", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private LocalDate birthday;

}
